package com.jjty.dataGenerator.bg.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jjty.dataGenerator.bg.entity.BgAccount;
import com.jjty.dataGenerator.bg.mapper.BgAccountMapper;
import com.jjty.dataGenerator.bg.service.IBgAccountService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangyulong
 * @since 2023-08-25
 */
@Service
public class BgAccountServiceImpl extends ServiceImpl<BgAccountMapper, BgAccount> implements IBgAccountService {

    @Override
    public BgAccount getByAccount(String username, String password) {
        return this.lambdaQuery().eq(BgAccount::getUsername, username)
                .eq(BgAccount::getPassword, password)
                .one();
    }
}
